<?php

class User_Service_Install
{
	public function onInstall()
	{

	}

	public function onEnable()
	{

	}

	public function onDisable()
	{

	}

	public function addAdminAccount($params)
	{
		$table = new User_Model_DbTable_Users;
		$user = $table -> fetchNew();
		$user -> setFromArray($params);
		$user -> created_date = $user -> updated_date = date('Y-m-d H:i:s');
		$user -> setPassword($params['password']);
		$user -> level_id = 1;
		$user -> save();
	}

}
